/**
 * @Author: 陈新林
 * @Date: 2020-12-28
 * @Last Modified by: chenxinlin
 * @Last Modified time: 2020-12-23 14:38
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 列表查询
export const getlist = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/complaintBill`, {params})

// 保存投诉接待单信息
export const dosave = params => axios.post(`${SERVER.CMSCLOUD_WMS}/part/complaintBill/dosave`, params)

// 更新投诉接待单信息,保存投诉单处理明细
export const doupdate = params => axios.post(`${SERVER.CMSCLOUD_WMS}/part/complaintBill/doupdate`, params)

// 列表查询投诉单(厂端自建和CC端下发)
export const getcomplainlist = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/complaintBill/getcomplainlist`, {params})

// 列表查询投诉单处理明细
export const getcomplaindetiallist = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/complaintBill/getcomplaindetiallist`, {params})

// 列表查询投诉单结案
export const getcomplainclosecaselist = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/complaintBill/getcomplainclosecaselist`, {params})

// 删除投诉单处理单子
export const delecte = id => axios.get(`${SERVER.CMSCLOUD_WMS}/part/complaintBill/delecte/${id}`)

// 投诉结案
export const doupdateforclosecase = params => axios.post(`${SERVER.CMSCLOUD_WMS}/part/complaintBill/doupdateforclosecase`, params)

// 投诉仲裁
export const doarbitration = params => axios.post(`${SERVER.CMSCLOUD_WMS}/part/complaintBill/doarbitration`, params)

// 审核历史查询
export const getarbitrationlist = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/complaintBill/getarbitrationlist`, {params})

// 投诉仲裁列表查询
export const getArbitrationList = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/complaintBill/getArbitrationList`, {params})

// 根据工单ID查询工单信息
export const getRonoById = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/complaintBill/getronobyid`, {params})

// 根据VIN码查询车辆信息
export const getCarByVin = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/complaintBill/getcarbyvin`, {params})


